#ifndef HISTORYMESSAGEWIDGET_H
#define HISTORYMESSAGEWIDGET_H

#include <QWidget>
#include <QDialog>
#include <QPushButton>
#include <QLineEdit>
#include <QDateTimeEdit>
#include <QLabel>
#include <QScrollArea>
#include <QScrollBar>
#include <QGridLayout>
#include <QVBoxLayout>
#include "historymessageitem.h"
#include <QRadioButton>
#include "model/data.h"
#include "model/datacenter.h"
#include "toast.h"

using namespace model;
class HistoryMessageWidget : public QDialog
{
    Q_OBJECT
public:
    explicit HistoryMessageWidget(QWidget *parent = nullptr);

    void addHistoryMessage(const Message& message);
    void clear();

    void clickSearchBtn();
    void clickSearchBtnDone();

private:
    QRadioButton* radioBtn1;
    QRadioButton* radioBtn2;
    QLineEdit* searchEdit;
    QPushButton* searchBtn;
    QLabel* begLabel;
    QLabel* endLabel;
    QDateTimeEdit* begTimeEdit;
    QDateTimeEdit* endTimeEdit;

    QWidget* container;



signals:
};

#endif // HISTORYMESSAGEWIDGET_H
